#! /bin/bash
#
# Copyright 2023-2025 The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0

echo "Note: If not already done, run 'testBuild' in the repository root directory to generate gen-*/"

for build in gen-*; do
  if [ "$build" == gen-validusage ]; then continue; fi

  output=$build/out/html/vkspec-body.html
  expectation=expectations/${build#gen-}.html

  cp -f "$output" "$expectation"
done

## Skip VU generation test until new Antora-centric build component interaction is sorted out
## cp -f gen-validusage/out/validation/validusage.json expectations/validusage.json
